package com.android.fxcontacts;

import android.net.Uri;
import android.provider.ContactsContract;

public final class ProviderStatus
{
	/**
	 * The content:// style URI for this table. Requests to this URI can be
	 * performed on the UI thread because they are always unblocking.
	 * 
	 * @hide
	 */
	public static final Uri CONTENT_URI = Uri.withAppendedPath(
			ContactsContract.AUTHORITY_URI, "provider_status");

	/**
	 * The MIME-type of {@link #CONTENT_URI} providing a directory of
	 * settings.
	 * 
	 * @hide
	 */
	public static final String CONTENT_TYPE = "vnd.android.cursor.dir/provider_status";

	/**
	 * An integer representing the current status of the provider.
	 * 
	 * @hide
	 */
	public static final String STATUS = "status";

	/**
	 * Default status of the provider.
	 * 
	 * @hide
	 */
	public static final int STATUS_NORMAL = 0;

	/**
	 * The status used when the provider is in the process of upgrading.
	 * Contacts
	 * are temporarily unaccessible.
	 * 
	 * @hide
	 */
	public static final int STATUS_UPGRADING = 1;

	/**
	 * The status used if the provider was in the process of upgrading but ran
	 * out of storage. The DATA1 column will contain the estimated amount of
	 * storage required (in bytes). Update status to STATUS_NORMAL to force
	 * the provider to retry the upgrade.
	 * 
	 * @hide
	 */
	public static final int STATUS_UPGRADE_OUT_OF_MEMORY = 2;

	/**
	 * The status used during a locale change.
	 * 
	 * @hide
	 */
	public static final int STATUS_CHANGING_LOCALE = 3;

	/**
	 * Additional data associated with the status.
	 * 
	 * @hide
	 */
	public static final String DATA1 = "data1";
}